var bgW = $(window).width();
bgW = 640;
var bgH = $(window).height();
var state = $.cookie("state");
var openid = $.cookie("openid");
var id = $.cookie("id");
var bgmp3 = document.getElementById("bgmp3");
$(function() {
	var music = false;
	var yinyue = function() {
		if(music == false) {
			$("#tubiao").attr("src","image/play.png");
			music = true;
			bgmp3.play();
		} else {
			$("#tubiao").attr("src","image/stop.png")
			music = false;
			bgmp3.pause();
		}
	}
	$("#tubiao").click(function() {
		yinyue();

	})
	yinyue();
	
})

